<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="utf-8">
    <title>账户列表</title>
</head>
<body>

    <h1 style="text-align: center">账户列表</h1>
    <table width="800px" cellspacing="0" border="1">
        <tr>
            <th>编号</th>
            <th>用户名</th>
            <th>真实姓名</th>
            <th>操作</th>
        </tr>

        <c:if test="${empty accounts}">
            <tr>
                <td colspan="4" style="text-align: center">没有数据</td>
            </tr>
        </c:if>

        <c:if test="${not empty accounts}">
            <c:forEach items="${accounts}" var="account" varStatus="status">
                <tr>
                    <td>${status.count}</td>
                    <td>${account.username}</td>
                    <td>${account.name}</td>
                    <td>
                        <a href="javascript:void(0);">编辑</a>
                        <a href="javascript:void(0);">删除</a>
                    </td>
                </tr>
            </c:forEach>
        </c:if>

    </table>

</body>
</html>
